<?php
class cls_config_user
{
	static $default_password = "123456";
	static function check_name_rule($user_name)
	{
		if (preg_match('/^[a-z\d_]{3,12}$/i', $user_name)) {
			return true;
		} else {
			return false;
		}
	}
	static function check_pwd_rule($password)
	{
		if (preg_match('/^[a-z\d!@#$%^&*()_+\-]{3,12}$/i', $password)) {
			return true;
		} else {
			return false;
		}
	}
	static function check_real_name_rule($real_name){
		if (preg_match('/^[\x{4e00}-\x{9fa5}]{2,8}$/u', $real_name)) {
			return true;
		} else {
			return false;
		}
	}
}